<template>
    <div class="box">
        <h2>Child2 - 接收数据</h2>
    </div>
</template>

<script>
export default {
    name: "Child2",
    mounted() {
        this.$bus.$on('xxxx', this.receiveParams)
    },
    methods: {
        receiveParams(params) {
            console.log('Child2接收到的参数', params)
        }
    }
}
</script>

<style scoped>

</style>